package cn.edu.buaa.cnsatm.traffic_big_data_server.aviation.model;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author: LX
 * @className: AirportWeatherModel
 * @description: 机场的天气情况以及天气对机场的影响
 * @data: 2019-10-28
 **/
public class AirportWeatherModel {
    String airport_name = "";
    String effects = "";//气象对机场的影响
    String datetime = "";
    String weather = "";
    double temperature;
    double wind_speed;
    String cloud = "";
    double visibility;

    public AirportWeatherModel(String airport_name, String effects, String datetime, String weather, double temperature, double wind_speed, String cloud, double visibility) {
        this.airport_name = airport_name;
        this.effects = effects;
        this.datetime = datetime;
        this.weather = weather;
        this.temperature = temperature;
        this.wind_speed = wind_speed;
        this.cloud = cloud;
        this.visibility = visibility;
    }

    public AirportWeatherModel() {

    }

    public AirportWeatherModel(ResultSet resultSet) throws SQLException {
        this.airport_name = resultSet.getString("airport_name");
        this.effects = resultSet.getString("effects");
        this.datetime = resultSet.getString("datetime");
        this.weather = resultSet.getString("weather");
        this.temperature = resultSet.getDouble("temperature");
        this.wind_speed = resultSet.getDouble("wind_speed");
        this.cloud = resultSet.getString("cloud");
        this.visibility = resultSet.getDouble("visibility");
    }

    public String getAirport_name() {
        return airport_name;
    }

    public String getEffects() {
        return effects;
    }

    public String getDatetime() {
        return datetime;
    }

    public String getWeather() {
        return weather;
    }

    public double getTemperature() {
        return temperature;
    }

    public double getWind_speed() {
        return wind_speed;
    }

    public String getCloud() {
        return cloud;
    }

    public double getVisibility() {
        return visibility;
    }

    public void setAirport_name(String airport_name) {
        this.airport_name = airport_name;
    }

    public void setEffects(String effects) {
        this.effects = effects;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public void setWeather(String weather) {
        this.weather = weather;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public void setWind_speed(double wind_speed) {
        this.wind_speed = wind_speed;
    }

    public void setCloud(String cloud) {
        this.cloud = cloud;
    }

    public void setVisibility(double visibility) {
        this.visibility = visibility;
    }
}
